package com.j2eefast.bussiness.contract.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.j2eefast.bussiness.contract.entity.BusArchivesEntity;
import com.j2eefast.bussiness.contract.entity.BusEquipmentEntity;
import com.j2eefast.bussiness.contract.entity.BusScrapEntity;
import com.j2eefast.framework.sys.entity.SysUserEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>设备档案</p>
 *
 * @author: summer
 * @date: 2021-06-08 17:41
 * @web: http://www.letukeji.cn
 * @version: 1.0.1
 */
public interface BusArchivesMapper extends BaseMapper<BusArchivesEntity> {



    public boolean deleteByIds(@Param("ids") Long[] ids);
    public boolean updateCheck(@Param("id") Long id, @Param("userId") Long userId);
    //查询用户信息
    public SysUserEntity getSysById(@Param("userId") Long userId);


    /**
     * 页面查询流程实例分页
     * @return
     */
    Page<BusArchivesEntity> findPage(IPage<?> params,
                                      @Param("equipmentCode") String createBy,
                                      @Param("equipmentCode2") String equipmentCode2,
                                     @Param("equipmentName") String equipmentName,
                                     @Param("equipmentName2") String equipmentName2,
                                     @Param("equipmentModel") String equipmentModel,
                                      @Param("meteringUnit") String meteringUnit);

    List<BusArchivesEntity> findList(IPage<?> params,
                                     @Param("createBy") String createBy,
                                     @Param("meteringUnit") String meteringUnit,
                                     @Param("projectName") String projectName);




//    /**
//     * 页面查询流程实例分页
//     * @return
//     */
//    Page<BusScrapEntity> findPage(IPage<?> params,
//                                         // @Param("parentId") String parentId,
//                                         @Param("sql_filter") String sql_filter);

//    List<BusArchivesEntity> findList(
////            @Param("name") String name,
////            @Param("ceoName") String ceoName,
////            @Param("paymentNuit") String paymentNuit,
////            @Param("contractSum") String contractSum,
////            @Param("projectName") String projectName,
//            @Param("ids") Long[] ids,
//            @Param("sql_filter") String sql_filter);

}
